<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table>
    <thead>
    <tr>
        <td>id</td>
        <td>name</td>
        <td>remark</td>
        <td>createdTime</td>
        <td>删除</td>
        <td>更新</td>
    </tr>
    </thead>
    <tbody>
    <a th:href="@{/goods/addGoods}">新增商品</a>
    <tr th:each="g:${goodList}">
        <td th:text="${g.id}"></td>
        <td th:text="${g.name}"></td>
        <td th:text="${g.remark}"></td>
        <td th:text="${#dates.format(g.createdTime,'yyyy-MM-dd')}"></td>
        <td><a th:href="@{/goods/deleteById/{id} (id=${g.id})}">删除</a></td>
        <td><a th:href="@{/goods/findGoodsById/{id} (id=${g.id})}">更新</a></td>
    </tr>

    </tbody>

</table>

</body>
</html>